import java.util.InputMismatchException;
import java.util.Scanner;

/**
 *
 * @author Bora SAYINER
 * @since Dec 6, 2014 10:26:26 AM
 * @version 1.0
 */
public class Driver {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		System.out.print("Lütfen yaşınızı giriniz: ");
		int yas = 0;
		try {
			int result = 5 / 0;
		} catch (NumberFormatException exception) {
			System.out.println("NumberFormatException");
		} catch (ArithmeticException exception) {
			System.out.println("ArithmeticException");
		} catch (InputMismatchException exception) {
			System.out.println("InputMismatchException");
		} catch (Exception exception) {
			System.out.println("Exception");
		} finally {
			System.out.println("Finally");
		}
		// System.out.println("Girilen yaş: " + yas);
	}
}
